package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.dto.CategoryPageQueryDTO;
import com.sky.entity.Category;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CategoryMapper {
    void add(Category category);

    Page<Category> page(CategoryPageQueryDTO categoryPageQueryDTO);

    void updateStatus(Category cat);
    void deleteByid(Long id);
    List<Category>selectByTypes(Integer type);
    void update(Category category);
}
